﻿using System;
using System.Linq.Expressions;
using Hangfire;

namespace NetCoreHangfireDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            //var job = BackgroundJob.Enqueue(()=>Console.WriteLine("执行代码"));
            BackgroundJob.Schedule(() => Console.WriteLine("Execate"), new TimeSpan(0, 0, 10));
            Console.ReadLine();
        }
    }
}
